<?php
$attributes = array('id' => 'register_users');
echo form_open('users/signup', $attributes);

$username = array(
    'name' => 'username',
    'id' => 'username',
    'value' => set_value('username'),
);

$email = array(
    'name' => 'email',
    'id' => 'email',
    'value' => set_value('email'),
);


$password = array(
    'name' => 'password',
    'id' => 'password',
    'value' => ''
);

$re_password = array(
    'name' => 're_password',
    'id' => 're_password',
    'value' => ''
);


$submit = array(
    'name' => 'submit',
    'id' => 'submit',
    'value' => 'Registrar',
);
?>

<div class="container_12">

    <div class="prefix_3"class="grid_5">
        <div class="grid_5" id="formulario_registro">
        <div id="usuario" class="campo_formulario">
            <?php
            echo form_label('Usuario');
            echo form_input($username);
            ?>
            <span class="error">
                <?= form_error('username'); ?>
            </span>
        </div>

        <div class="campo_formulario">
            <?php
            echo form_label('Email');
            echo form_input($email);
            ?>
            <span class="error">
                <?= form_error('email'); ?>

            </span>
        </div>
        <div class="campo_formulario">
            <?php
            echo form_label('Clave');
            echo form_input($password);
            ?>
            <span class="error">
                <?= form_error('password'); ?>
            </span>
        </div>
        <div class="campo_formulario">

            <?php
            echo form_label('Repita Clave');
            echo form_input($re_password);
            ?>
            <span class="error">
                <?= form_error('re_password'); ?>

            </span>
        </div>

        <div id="boton_submit">
            <?= form_submit($submit); ?>
        </div>

        </div>
    </div>
</div>